Optimal. Leaf size=67 \[ -\frac {(a+b) \cosh (c+d x)}{d}+\frac {(a+3 b) \cosh ^3(c+d x)}{3 d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^7(c+d x)}{7 d} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.05, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.095, Rules used = {3294, 1167}
\begin {gather*} \frac {(a+3 b) \cosh ^3(c+d x)}{3 d}-\frac {(a+b) \cosh (c+d x)}{d}+\frac {b \cosh ^7(c+d x)}{7 d}-\frac {3 b \cosh ^5(c+d x)}{5 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 1167
Rule 3294
Rubi steps
\begin {align*} \int \sinh ^3(c+d x) \left (a+b \sinh ^4(c+d x)\right ) \, dx &=-\frac {\text {Subst}\left (\int \left (1-x^2\right ) \left (a+b-2 b x^2+b x^4\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {\text {Subst}\left (\int \left (a \left (1+\frac {b}{a}\right )-(a+3 b) x^2+3 b x^4-b x^6\right ) \, dx,x,\cosh (c+d x)\right )}{d}\\ &=-\frac {(a+b) \cosh (c+d x)}{d}+\frac {(a+3 b) \cosh ^3(c+d x)}{3 d}-\frac {3 b \cosh ^5(c+d x)}{5 d}+\frac {b \cosh ^7(c+d x)}{7 d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 93, normalized size = 1.39 \begin {gather*} -\frac {3 a \cosh (c+d x)}{4 d}-\frac {35 b \cosh (c+d x)}{64 d}+\frac {a \cosh (3 (c+d x))}{12 d}+\frac {7 b \cosh (3 (c+d x))}{64 d}-\frac {7 b \cosh (5 (c+d x))}{320 d}+\frac {b \cosh (7 (c+d x))}{448 d} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.70, size = 70, normalized size = 1.04
method | result | size |
default | \(\frac {\left (-\frac {35 b}{64}-\frac {3 a}{4}\right ) \cosh \left (d x +c \right )}{d}+\frac {\left (\frac {21 b}{64}+\frac {a}{4}\right ) \cosh \left (3 d x +3 c \right )}{3 d}-\frac {7 b \cosh \left (5 d x +5 c \right )}{320 d}+\frac {b \cosh \left (7 d x +7 c \right )}{448 d}\) | \(70\) |
risch | \(\frac {b \,{\mathrm e}^{7 d x +7 c}}{896 d}-\frac {7 b \,{\mathrm e}^{5 d x +5 c}}{640 d}+\frac {7 b \,{\mathrm e}^{3 d x +3 c}}{128 d}+\frac {{\mathrm e}^{3 d x +3 c} a}{24 d}-\frac {3 a \,{\mathrm e}^{d x +c}}{8 d}-\frac {35 b \,{\mathrm e}^{d x +c}}{128 d}-\frac {3 \,{\mathrm e}^{-d x -c} a}{8 d}-\frac {35 \,{\mathrm e}^{-d x -c} b}{128 d}+\frac {7 \,{\mathrm e}^{-3 d x -3 c} b}{128 d}+\frac {{\mathrm e}^{-3 d x -3 c} a}{24 d}-\frac {7 b \,{\mathrm e}^{-5 d x -5 c}}{640 d}+\frac {b \,{\mathrm e}^{-7 d x -7 c}}{896 d}\) | \(176\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] Leaf count of result is larger than twice the leaf count of optimal. 157 vs.
\(2 (61) = 122\).
time = 0.27, size = 157, normalized size = 2.34 \begin {gather*} -\frac {1}{4480} \, b {\left (\frac {{\left (49 \, e^{\left (-2 \, d x - 2 \, c\right )} - 245 \, e^{\left (-4 \, d x - 4 \, c\right )} + 1225 \, e^{\left (-6 \, d x - 6 \, c\right )} - 5\right )} e^{\left (7 \, d x + 7 \, c\right )}}{d} + \frac {1225 \, e^{\left (-d x - c\right )} - 245 \, e^{\left (-3 \, d x - 3 \, c\right )} + 49 \, e^{\left (-5 \, d x - 5 \, c\right )} - 5 \, e^{\left (-7 \, d x - 7 \, c\right )}}{d}\right )} + \frac {1}{24} \, a {\left (\frac {e^{\left (3 \, d x + 3 \, c\right )}}{d} - \frac {9 \, e^{\left (d x + c\right )}}{d} - \frac {9 \, e^{\left (-d x - c\right )}}{d} + \frac {e^{\left (-3 \, d x - 3 \, c\right )}}{d}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 155 vs.
\(2 (61) = 122\).
time = 0.41, size = 155, normalized size = 2.31 \begin {gather*} \frac {15 \, b \cosh \left (d x + c\right )^{7} + 105 \, b \cosh \left (d x + c\right ) \sinh \left (d x + c\right )^{6} - 147 \, b \cosh \left (d x + c\right )^{5} + 105 \, {\left (5 \, b \cosh \left (d x + c\right )^{3} - 7 \, b \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{4} + 35 \, {\left (16 \, a + 21 \, b\right )} \cosh \left (d x + c\right )^{3} + 105 \, {\left (3 \, b \cosh \left (d x + c\right )^{5} - 14 \, b \cosh \left (d x + c\right )^{3} + {\left (16 \, a + 21 \, b\right )} \cosh \left (d x + c\right )\right )} \sinh \left (d x + c\right )^{2} - 105 \, {\left (48 \, a + 35 \, b\right )} \cosh \left (d x + c\right )}{6720 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 128 vs.
\(2 (56) = 112\).
time = 0.63, size = 128, normalized size = 1.91 \begin {gather*} \begin {cases} \frac {a \sinh ^{2}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {2 a \cosh ^{3}{\left (c + d x \right )}}{3 d} + \frac {b \sinh ^{6}{\left (c + d x \right )} \cosh {\left (c + d x \right )}}{d} - \frac {2 b \sinh ^{4}{\left (c + d x \right )} \cosh ^{3}{\left (c + d x \right )}}{d} + \frac {8 b \sinh ^{2}{\left (c + d x \right )} \cosh ^{5}{\left (c + d x \right )}}{5 d} - \frac {16 b \cosh ^{7}{\left (c + d x \right )}}{35 d} & \text {for}\: d \neq 0 \\x \left (a + b \sinh ^{4}{\left (c \right )}\right ) \sinh ^{3}{\left (c \right )} & \text {otherwise} \end {cases} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] Leaf count of result is larger than twice the leaf count of optimal. 142 vs.
\(2 (61) = 122\).
time = 0.43, size = 142, normalized size = 2.12 \begin {gather*} \frac {b e^{\left (7 \, d x + 7 \, c\right )}}{896 \, d} - \frac {7 \, b e^{\left (5 \, d x + 5 \, c\right )}}{640 \, d} + \frac {{\left (16 \, a + 21 \, b\right )} e^{\left (3 \, d x + 3 \, c\right )}}{384 \, d} - \frac {{\left (48 \, a + 35 \, b\right )} e^{\left (d x + c\right )}}{128 \, d} - \frac {{\left (48 \, a + 35 \, b\right )} e^{\left (-d x - c\right )}}{128 \, d} + \frac {{\left (16 \, a + 21 \, b\right )} e^{\left (-3 \, d x - 3 \, c\right )}}{384 \, d} - \frac {7 \, b e^{\left (-5 \, d x - 5 \, c\right )}}{640 \, d} + \frac {b e^{\left (-7 \, d x - 7 \, c\right )}}{896 \, d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.79, size = 66, normalized size = 0.99 \begin {gather*} -\frac {a\,\mathrm {cosh}\left (c+d\,x\right )+b\,\mathrm {cosh}\left (c+d\,x\right )-\frac {a\,{\mathrm {cosh}\left (c+d\,x\right )}^3}{3}-b\,{\mathrm {cosh}\left (c+d\,x\right )}^3+\frac {3\,b\,{\mathrm {cosh}\left (c+d\,x\right )}^5}{5}-\frac {b\,{\mathrm {cosh}\left (c+d\,x\right )}^7}{7}}{d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________